package Collection.set;


import java.util.HashSet;

public class HashSetdemo2 {
    public static void main(String[] args) {
        HashSet<String> set = new HashSet<>();
        String hello1 = new String("hello");
        String hello2 = new String("hello");
        set.add(hello1);
        set.add(hello2);
        System.out.println(hello1.hashCode());
        System.out.println(hello2.hashCode());
        System.out.println(set.size());
        for (String temp:set){
            System.out.println(temp);
        }
    }
}
